package cn.wonderland.netflix.controller;

import cn.wonderland.netflix.domain.UserTest;

import cn.wonderland.netflix.service.UserTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/user/list")
public class UserTestController {

    @Autowired
    private UserTestService userTestService;

    @RequestMapping("/all")
    public List<UserTest> getAllUsers() {
        return userTestService.getAllUsers();
    }
}
